package com.buba.springcloud.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;




@Data
@NoArgsConstructor
@AllArgsConstructor
public class HfCouponUseRecord {

    private long id;
    private long cid;
    private long uid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    private java.sql.Timestamp useTime;
    private long amount;
    private long oid;
    private HfUser hfUser;
    private HfCoupon hfCoupon;
}